package com.example.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.WechatUser;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface UserMapper extends BaseMapper<WechatUser> {

    @Select(value = "select * from wechat_user where token=#{token}")
    WechatUser queryToken(String token);

    @Select(value = "select * from wechat_user where openid = #{openid}" )
    WechatUser getOpenIdWechat(String openid);
}
